package com.service;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.dao.VisitorsMapper;
import com.entity.Visitors;

@Service
public class VisitorsService {
	
	@Resource
	VisitorsMapper visitorsMapper;
	
	public int insert(Visitors visitors){
		return visitorsMapper.insertSelective(visitors);
	}
	
	public List<Visitors> selectTimeAndUnitdoor(Map<String,Object> maps){
		return visitorsMapper.selectTimeAndUnitdoor(maps);
	}
	
	public List<Visitors> selectTimeAndUnitdoorAll(Map<String,Object> maps){
		return visitorsMapper.selectTimeAndUnitdoorAll(maps);
	}
	
	public List<Visitors> selectTimeAndUnitdoorAllto(Map<String,Object> maps){
		return visitorsMapper.selectTimeAndUnitdoorAllto(maps);
	}
	
	public List<Visitors> selectTimeAndAddress(Map<String,Object> maps){
		return visitorsMapper.selectTimeAndAddress(maps);
	}
	
	public Visitors openid(String openid){
		return visitorsMapper.openid(openid);
	}
	
	public List<Visitors> fail(Map<String,Object>map){
		return visitorsMapper.fail(map);
	}
	
	public List<Visitors> gunfail(String str){
		return visitorsMapper.gunfail(str);
	}
	
	public List<Visitors> authorization(){
		return visitorsMapper.authorization();
	}
}
